package com.kang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kang.dao.GeneralStorage_itemInformationMapper;
import com.kang.pojo.GeneralStorage_itemInformation;
import com.kang.service.GeneralStorage_itemInformationService;

/**
 * 普通入库-物品服务Impl
 * 
 * @author ysq
 *
 */
@Service
public class GeneralStorage_itemInformationServiceImpl implements
		GeneralStorage_itemInformationService {
	/**
	 * 普通入库-物品Mapper
	 */
	@Resource
	private GeneralStorage_itemInformationMapper gs_ifm;

	/**
	 * 保存generalstorage_iteminformation普通入库-物品信息
	 */
	@Override
	public int insertone(GeneralStorage_itemInformation gs_if) {

		return gs_ifm.insertSelective(gs_if);
	}

	/**
	 * 根据generalStorageID查询generalstorage_iteminformation普通入库-物品信息
	 */
	@Override
	public List<GeneralStorage_itemInformation> selectGeneralStorage_itemInformationByGeneralstorageid(
			Integer generalstorageid) {
		return gs_ifm
				.selectGeneralStorage_itemInformationByGeneralstorageid(generalstorageid);
	}

	/**
	 * 根据generalStorageID删除generalstorage_iteminformation普通入库-物品信息
	 */
	@Override
	public int deleteByGeneralStorageID(Integer id) {
		return gs_ifm.deleteByGeneralStorageID(id);
	}

}
